Integrand size = 23, antiderivative size = 127 \[ \int \csc (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx=-\frac {a^{3/2} \text {arctanh}\left (\frac {\sqrt {a} \sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{f}+\frac {(3 a-b) \sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{2 f}+\frac {b \sec (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{2 f} \]
-a^(3/2)*arctanh(sec(f*x+e)*a^(1/2)/(a-b+b*sec(f*x+e)^2)^(1/2))/f+1/2*(3*a -b)*arctanh(sec(f*x+e)*b^(1/2)/(a-b+b*sec(f*x+e)^2)^(1/2))*b^(1/2)/f+1/2*b *sec(f*x+e)*(a-b+b*sec(f*x+e)^2)^(1/2)/f
Leaf count is larger than twice the leaf count of optimal. \(492\) vs. \(2(127)=254\).
Time = 5.22 (sec) , antiderivative size = 492, normalized size of antiderivative = 3.87 \[ \int \csc (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx=\frac {\sec ^2\left (\frac {1}{2} (e+f x)\right ) \left (-4 \sqrt {b} (-3 a+b) \text {arctanh}\left (\frac {-\sqrt {a} \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )+\sqrt {4 b \tan ^2\left (\frac {1}{2} (e+f x)\right )+a \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )^2}}{2 \sqrt {b}}\right ) \cos ^2(e+f x)+4 a^{3/2} \text {arctanh}\left (\tan ^2\left (\frac {1}{2} (e+f x)\right )-\frac {\sqrt {4 b \tan ^2\left (\frac {1}{2} (e+f x)\right )+a \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )^2}}{\sqrt {a}}\right ) \cos ^2(e+f x)+a^{3/2} \log \left (a-2 b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+\sqrt {a} \sqrt {4 b \tan ^2\left (\frac {1}{2} (e+f x)\right )+a \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )^2}\right )+a^{3/2} \cos (2 (e+f x)) \log \left (a-2 b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+\sqrt {a} \sqrt {4 b \tan ^2\left (\frac {1}{2} (e+f x)\right )+a \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )^2}\right )+\frac {b \sqrt {(a+b+(a-b) \cos (2 (e+f x))) \sec ^4\left (\frac {1}{2} (e+f x)\right )}}{\sqrt {2}}+\frac {b \cos (e+f x) \sqrt {(a+b+(a-b) \cos (2 (e+f x))) \sec ^4\left (\frac {1}{2} (e+f x)\right )}}{\sqrt {2}}\right ) \sec (e+f x) \sqrt {(a+b+(a-b) \cos (2 (e+f x))) \sec ^2(e+f x)}}{4 f \sqrt {(a+b+(a-b) \cos (2 (e+f x))) \sec ^4\left (\frac {1}{2} (e+f x)\right )}} \]
(Sec[(e + f*x)/2]^2*(-4*Sqrt[b]*(-3*a + b)*ArcTanh[(-(Sqrt[a]*(-1 + Tan[(e + f*x)/2]^2)) + Sqrt[4*b*Tan[(e + f*x)/2]^2 + a*(-1 + Tan[(e + f*x)/2]^2) ^2])/(2*Sqrt[b])]*Cos[e + f*x]^2 + 4*a^(3/2)*ArcTanh[Tan[(e + f*x)/2]^2 - Sqrt[4*b*Tan[(e + f*x)/2]^2 + a*(-1 + Tan[(e + f*x)/2]^2)^2]/Sqrt[a]]*Cos[ e + f*x]^2 + a^(3/2)*Log[a - 2*b - a*Tan[(e + f*x)/2]^2 + Sqrt[a]*Sqrt[4*b *Tan[(e + f*x)/2]^2 + a*(-1 + Tan[(e + f*x)/2]^2)^2]] + a^(3/2)*Cos[2*(e + f*x)]*Log[a - 2*b - a*Tan[(e + f*x)/2]^2 + Sqrt[a]*Sqrt[4*b*Tan[(e + f*x) /2]^2 + a*(-1 + Tan[(e + f*x)/2]^2)^2]] + (b*Sqrt[(a + b + (a - b)*Cos[2*( e + f*x)])*Sec[(e + f*x)/2]^4])/Sqrt[2] + (b*Cos[e + f*x]*Sqrt[(a + b + (a - b)*Cos[2*(e + f*x)])*Sec[(e + f*x)/2]^4])/Sqrt[2])*Sec[e + f*x]*Sqrt[(a + b + (a - b)*Cos[2*(e + f*x)])*Sec[e + f*x]^2])/(4*f*Sqrt[(a + b + (a - b)*Cos[2*(e + f*x)])*Sec[(e + f*x)/2]^4])
Time = 0.33 (sec) , antiderivative size = 124, normalized size of antiderivative = 0.98, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.435, Rules used = {3042, 4147, 25, 318, 25, 398, 224, 219, 291, 219}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \csc (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\left (a+b \tan (e+f x)^2\right )^{3/2}}{\sin (e+f x)}dx\) |
\(\Big \downarrow \) 4147 |
\(\displaystyle \frac {\int -\frac {\left (b \sec ^2(e+f x)+a-b\right )^{3/2}}{1-\sec ^2(e+f x)}d\sec (e+f x)}{f}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\int \frac {\left (b \sec ^2(e+f x)+a-b\right )^{3/2}}{1-\sec ^2(e+f x)}d\sec (e+f x)}{f}\) |
\(\Big \downarrow \) 318 |
\(\displaystyle \frac {\frac {1}{2} \int -\frac {(3 a-b) b \sec ^2(e+f x)+(a-b) (2 a-b)}{\left (1-\sec ^2(e+f x)\right ) \sqrt {b \sec ^2(e+f x)+a-b}}d\sec (e+f x)+\frac {1}{2} b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\frac {1}{2} b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}-\frac {1}{2} \int \frac {2 a^2-3 b a+b^2+(3 a-b) b \sec ^2(e+f x)}{\left (1-\sec ^2(e+f x)\right ) \sqrt {b \sec ^2(e+f x)+a-b}}d\sec (e+f x)}{f}\) |
\(\Big \downarrow \) 398 |
\(\displaystyle \frac {\frac {1}{2} \left (b (3 a-b) \int \frac {1}{\sqrt {b \sec ^2(e+f x)+a-b}}d\sec (e+f x)-2 a^2 \int \frac {1}{\left (1-\sec ^2(e+f x)\right ) \sqrt {b \sec ^2(e+f x)+a-b}}d\sec (e+f x)\right )+\frac {1}{2} b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f}\) |
\(\Big \downarrow \) 224 |
\(\displaystyle \frac {\frac {1}{2} \left (b (3 a-b) \int \frac {1}{1-\frac {b \sec ^2(e+f x)}{b \sec ^2(e+f x)+a-b}}d\frac {\sec (e+f x)}{\sqrt {b \sec ^2(e+f x)+a-b}}-2 a^2 \int \frac {1}{\left (1-\sec ^2(e+f x)\right ) \sqrt {b \sec ^2(e+f x)+a-b}}d\sec (e+f x)\right )+\frac {1}{2} b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {1}{2} \left (\sqrt {b} (3 a-b) \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )-2 a^2 \int \frac {1}{\left (1-\sec ^2(e+f x)\right ) \sqrt {b \sec ^2(e+f x)+a-b}}d\sec (e+f x)\right )+\frac {1}{2} b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f}\) |
\(\Big \downarrow \) 291 |
\(\displaystyle \frac {\frac {1}{2} \left (\sqrt {b} (3 a-b) \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )-2 a^2 \int \frac {1}{1-\frac {a \sec ^2(e+f x)}{b \sec ^2(e+f x)+a-b}}d\frac {\sec (e+f x)}{\sqrt {b \sec ^2(e+f x)+a-b}}\right )+\frac {1}{2} b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {1}{2} \left (\sqrt {b} (3 a-b) \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )-2 a^{3/2} \text {arctanh}\left (\frac {\sqrt {a} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )\right )+\frac {1}{2} b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f}\) |
((-2*a^(3/2)*ArcTanh[(Sqrt[a]*Sec[e + f*x])/Sqrt[a - b + b*Sec[e + f*x]^2] ] + (3*a - b)*Sqrt[b]*ArcTanh[(Sqrt[b]*Sec[e + f*x])/Sqrt[a - b + b*Sec[e + f*x]^2]])/2 + (b*Sec[e + f*x]*Sqrt[a - b + b*Sec[e + f*x]^2])/2)/f
3.2.7.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a, b}, x] && !GtQ[a, 0]
Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*((c_) + (d_.)*(x_)^2)), x_Symbol] :> Subst [Int[1/(c - (b*c - a*d)*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_), x_Symbol] :> Sim p[d*x*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q - 1)/(b*(2*(p + q) + 1))), x] + S imp[1/(b*(2*(p + q) + 1)) Int[(a + b*x^2)^p*(c + d*x^2)^(q - 2)*Simp[c*(b *c*(2*(p + q) + 1) - a*d) + d*(b*c*(2*(p + 2*q - 1) + 1) - a*d*(2*(q - 1) + 1))*x^2, x], x], x] /; FreeQ[{a, b, c, d, p}, x] && NeQ[b*c - a*d, 0] && G tQ[q, 1] && NeQ[2*(p + q) + 1, 0] && !IGtQ[p, 1] && IntBinomialQ[a, b, c, d, 2, p, q, x]
Int[((e_) + (f_.)*(x_)^2)/(((a_) + (b_.)*(x_)^2)*Sqrt[(c_) + (d_.)*(x_)^2]) , x_Symbol] :> Simp[f/b Int[1/Sqrt[c + d*x^2], x], x] + Simp[(b*e - a*f)/ b Int[1/((a + b*x^2)*Sqrt[c + d*x^2]), x], x] /; FreeQ[{a, b, c, d, e, f} , x]
Int[sin[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)]^2)^ (p_.), x_Symbol] :> With[{ff = FreeFactors[Sec[e + f*x], x]}, Simp[1/(f*ff^ m) Subst[Int[(-1 + ff^2*x^2)^((m - 1)/2)*((a - b + b*ff^2*x^2)^p/x^(m + 1 )), x], x, Sec[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[( m - 1)/2]
Leaf count of result is larger than twice the leaf count of optimal. \(677\) vs. \(2(109)=218\).
Time = 2.52 (sec) , antiderivative size = 678, normalized size of antiderivative = 5.34
method | result | size |
default | \(-\frac {\left (a +b \tan \left (f x +e \right )^{2}\right )^{\frac {3}{2}} \left (\cos \left (f x +e \right )^{3} b^{\frac {5}{2}} \ln \left (-4 \sqrt {b}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-4 \sqrt {b}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \sec \left (f x +e \right )-4 b \sec \left (f x +e \right )\right )-3 \cos \left (f x +e \right )^{3} b^{\frac {3}{2}} \ln \left (-4 \sqrt {b}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-4 \sqrt {b}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \sec \left (f x +e \right )-4 b \sec \left (f x +e \right )\right ) a +\cos \left (f x +e \right )^{3} a^{\frac {3}{2}} \ln \left (\frac {2 \cos \left (f x +e \right ) \sqrt {a}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}+2 \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \sqrt {a}-2 \cos \left (f x +e \right ) a +2 b \cos \left (f x +e \right )+2 b}{\sqrt {a}\, \left (\cos \left (f x +e \right )+1\right )}\right ) b +\cos \left (f x +e \right )^{3} a^{\frac {3}{2}} \ln \left (-\frac {4 \left (\cos \left (f x +e \right ) \sqrt {a}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}+\cos \left (f x +e \right ) a -b \cos \left (f x +e \right )+\sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \sqrt {a}+b \right )}{\cos \left (f x +e \right )-1}\right ) b -\cos \left (f x +e \right )^{2} \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, b^{2}-\sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, b^{2} \cos \left (f x +e \right )\right )}{2 f b \left (\cos \left (f x +e \right )+1\right ) \left (a \cos \left (f x +e \right )^{2}+b \sin \left (f x +e \right )^{2}\right ) \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}}\) | \(678\) |
-1/2/f/b*(a+b*tan(f*x+e)^2)^(3/2)/(cos(f*x+e)+1)/(a*cos(f*x+e)^2+b*sin(f*x +e)^2)/((a*cos(f*x+e)^2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2)^(1/2)*(cos(f*x +e)^3*b^(5/2)*ln(-4*b^(1/2)*((a*cos(f*x+e)^2-b*cos(f*x+e)^2+b)/(cos(f*x+e) +1)^2)^(1/2)-4*b^(1/2)*((a*cos(f*x+e)^2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2 )^(1/2)*sec(f*x+e)-4*b*sec(f*x+e))-3*cos(f*x+e)^3*b^(3/2)*ln(-4*b^(1/2)*(( a*cos(f*x+e)^2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2)^(1/2)-4*b^(1/2)*((a*cos (f*x+e)^2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2)^(1/2)*sec(f*x+e)-4*b*sec(f*x +e))*a+cos(f*x+e)^3*a^(3/2)*ln(2/a^(1/2)*(cos(f*x+e)*a^(1/2)*((a*cos(f*x+e )^2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2)^(1/2)+((a*cos(f*x+e)^2-b*cos(f*x+e )^2+b)/(cos(f*x+e)+1)^2)^(1/2)*a^(1/2)-cos(f*x+e)*a+b*cos(f*x+e)+b)/(cos(f *x+e)+1))*b+cos(f*x+e)^3*a^(3/2)*ln(-4*(cos(f*x+e)*a^(1/2)*((a*cos(f*x+e)^ 2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2)^(1/2)+cos(f*x+e)*a-b*cos(f*x+e)+((a* cos(f*x+e)^2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2)^(1/2)*a^(1/2)+b)/(cos(f*x +e)-1))*b-cos(f*x+e)^2*((a*cos(f*x+e)^2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2 )^(1/2)*b^2-((a*cos(f*x+e)^2-b*cos(f*x+e)^2+b)/(cos(f*x+e)+1)^2)^(1/2)*b^2 *cos(f*x+e))
Time = 0.82 (sec) , antiderivative size = 747, normalized size of antiderivative = 5.88 \[ \int \csc (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx=\left [\frac {2 \, a^{\frac {3}{2}} \cos \left (f x + e\right ) \log \left (-\frac {2 \, {\left ({\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \, \sqrt {a} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + a + b\right )}}{\cos \left (f x + e\right )^{2} - 1}\right ) - {\left (3 \, a - b\right )} \sqrt {b} \cos \left (f x + e\right ) \log \left (-\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \, \sqrt {b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) + 2 \, b \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{4 \, f \cos \left (f x + e\right )}, -\frac {{\left (3 \, a - b\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) \cos \left (f x + e\right ) - a^{\frac {3}{2}} \cos \left (f x + e\right ) \log \left (-\frac {2 \, {\left ({\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \, \sqrt {a} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + a + b\right )}}{\cos \left (f x + e\right )^{2} - 1}\right ) - b \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{2 \, f \cos \left (f x + e\right )}, \frac {4 \, \sqrt {-a} a \arctan \left (\frac {\sqrt {-a} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{a}\right ) \cos \left (f x + e\right ) - {\left (3 \, a - b\right )} \sqrt {b} \cos \left (f x + e\right ) \log \left (-\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \, \sqrt {b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) + 2 \, b \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{4 \, f \cos \left (f x + e\right )}, \frac {2 \, \sqrt {-a} a \arctan \left (\frac {\sqrt {-a} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{a}\right ) \cos \left (f x + e\right ) - {\left (3 \, a - b\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) \cos \left (f x + e\right ) + b \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{2 \, f \cos \left (f x + e\right )}\right ] \]
[1/4*(2*a^(3/2)*cos(f*x + e)*log(-2*((a - b)*cos(f*x + e)^2 - 2*sqrt(a)*sq rt(((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2)*cos(f*x + e) + a + b)/(cos (f*x + e)^2 - 1)) - (3*a - b)*sqrt(b)*cos(f*x + e)*log(-((a - b)*cos(f*x + e)^2 - 2*sqrt(b)*sqrt(((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2)*cos(f* x + e) + 2*b)/cos(f*x + e)^2) + 2*b*sqrt(((a - b)*cos(f*x + e)^2 + b)/cos( f*x + e)^2))/(f*cos(f*x + e)), -1/2*((3*a - b)*sqrt(-b)*arctan(sqrt(-b)*sq rt(((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2)*cos(f*x + e)/b)*cos(f*x + e) - a^(3/2)*cos(f*x + e)*log(-2*((a - b)*cos(f*x + e)^2 - 2*sqrt(a)*sqrt( ((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2)*cos(f*x + e) + a + b)/(cos(f* x + e)^2 - 1)) - b*sqrt(((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2))/(f*c os(f*x + e)), 1/4*(4*sqrt(-a)*a*arctan(sqrt(-a)*sqrt(((a - b)*cos(f*x + e) ^2 + b)/cos(f*x + e)^2)*cos(f*x + e)/a)*cos(f*x + e) - (3*a - b)*sqrt(b)*c os(f*x + e)*log(-((a - b)*cos(f*x + e)^2 - 2*sqrt(b)*sqrt(((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2)*cos(f*x + e) + 2*b)/cos(f*x + e)^2) + 2*b*sqr t(((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2))/(f*cos(f*x + e)), 1/2*(2*s qrt(-a)*a*arctan(sqrt(-a)*sqrt(((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2 )*cos(f*x + e)/a)*cos(f*x + e) - (3*a - b)*sqrt(-b)*arctan(sqrt(-b)*sqrt(( (a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2)*cos(f*x + e)/b)*cos(f*x + e) + b*sqrt(((a - b)*cos(f*x + e)^2 + b)/cos(f*x + e)^2))/(f*cos(f*x + e))]
\[ \int \csc (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx=\int \left (a + b \tan ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}} \csc {\left (e + f x \right )}\, dx \]
\[ \int \csc (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx=\int { {\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}} \csc \left (f x + e\right ) \,d x } \]
Exception generated. \[ \int \csc (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx=\text {Exception raised: TypeError} \]
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Error: Bad Argument Type
Timed out. \[ \int \csc (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx=\int \frac {{\left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a\right )}^{3/2}}{\sin \left (e+f\,x\right )} \,d x \]